package com.smart.car.member.service;

import com.smart.car.common.res.exception.BusinessException;
import com.smart.car.member.entity.MemberUser;
import com.smart.car.member.entity.MemberUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @description: TODO
 * @author: zoutao
 * @date: 2021/4/15
 */

public interface MemberUserService {

    List<MemberUser> list();

    int bindMobile(String json) throws BusinessException;

    MemberUser selectUserByPhone(String phone);

    MemberUser queryUser(String username, String password);

    MemberUser getMember(String memberId) throws BusinessException;

    //增
    int insert(MemberUser record);
    //查
    List<MemberUser> queryUser(String phone);
    MemberUser selectUserById(String id);
    //改
    int updateByExampleSelective(@Param("record") MemberUser record);
    //删
    int deleteByPrimaryKey(String id);

}